<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>05.弧形选项卡</title>
  <style>
    .tab {
      width: 150px;
      height: 40px;
      margin: 0 auto;
      background-color: #ed6a5e;
      border-radius: 10px 10px 0 0;
      position: relative;
      /* 2. 景深 旋转 */
      transform: perspective(30px) rotateX(20deg);
      /* 3. 旋转中心的：横向居中，纵向底部 */
      transform-origin: center bottom;
    }
    /* 选项卡设置 */
    .tab::before, .tab::after {
      content: '';
      position: absolute;
      width: 10px;
      height: 10px;
      bottom: 0;
      /* background-color: #000; */
    }
    .tab::before {
      left: -10px;
      /* 1. 设置圆形渐变 */
      background-image: radial-gradient(
        circle at 0 0, 
        transparent 10px, 
        #ed6a5e 10px
        );
    }
    .tab::after {
      right: -10px;
      background-image: radial-gradient(
        circle at 100% 0, 
        transparent 10px, 
        #ed6a5e 10px
        );
    }

   
  </style>
</head>
<body>
  <div class="tab">
  </div>
  
</body>
</html>